package com.crm.service;

import org.springframework.transaction.annotation.Transactional;

import com.crm.dao.OrgDao;
import com.crm.dao.OrgNameDao;
import com.crm.pojo.Org;
import com.crm.pojo.OrgName;

@Transactional
public class ProductService {
	private OrgDao orgDao;
	private OrgNameDao orgNameDao;
	
	public void setOrgDao(OrgDao orgDao) {
		this.orgDao = orgDao;
	}
	public void setOrgNameDao(OrgNameDao orgNameDao) {
		this.orgNameDao = orgNameDao;
	}
	public OrgName getOrgNameById(String id) {
		return orgNameDao.findById(id);
	}
	public Org getOrgByUserIdAndOrgNameId(String id, String id2) {
		return orgDao.findByUserIdAndOrgNameId(id, id2);
	}
	
	
}
